package com.ruoyi.teaching.mapper;

import java.util.List;
import com.ruoyi.teaching.domain.YaTeachingPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 教学计划(课表)Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-09
 */
public interface YaTeachingPlanMapper  extends BaseMapper<YaTeachingPlan>
{
    /**
     * 查询教学计划(课表)
     *
     * @param id 教学计划(课表)主键
     * @return 教学计划(课表)
     */
    public YaTeachingPlan selectYaTeachingPlanById(Long id);

    /**
     * 查询教学计划(课表)列表
     *
     * @param yaTeachingPlan 教学计划(课表)
     * @return 教学计划(课表)集合
     */
    public List<YaTeachingPlan> selectYaTeachingPlanList(YaTeachingPlan yaTeachingPlan);

    /**
     * 新增教学计划(课表)
     *
     * @param yaTeachingPlan 教学计划(课表)
     * @return 结果
     */
    public int insertYaTeachingPlan(YaTeachingPlan yaTeachingPlan);

    /**
     * 修改教学计划(课表)
     *
     * @param yaTeachingPlan 教学计划(课表)
     * @return 结果
     */
    public int updateYaTeachingPlan(YaTeachingPlan yaTeachingPlan);

    /**
     * 删除教学计划(课表)
     *
     * @param id 教学计划(课表)主键
     * @return 结果
     */
    public int deleteYaTeachingPlanById(Long id);

    /**
     * 批量删除教学计划(课表)
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYaTeachingPlanByIds(Long[] ids);

    int batchInsertYaTeachingPlan(@Param("teachingPlanList") List<YaTeachingPlan> teachingPlanList);
}
